<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="triperest.*" %>
<%@ page import="java.util.ArrayList" %>
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>
<html>
  <head>
    <%@ include file="head.jsp" %>
    <script src="js/view.js" type="text/javascript"></script>
  </head>

  <body>
  <%@ include file="header.jsp" %>
    <h1 class="pageTitle">My Trips</h1>
    
  <% TriperestUser user = new TriperestUser();
  ArrayList<Trip> trips = user.getTrips();
  %>

    <div class="clear"></div>
    <select id="tripPicker">
    <%for(int i = 0; i < trips.size(); i++){%>
    <option value="<%= trips.get(i).getID() %>"><%= trips.get(i).getName() %></option>
    <%}%>
    </select>
    <input type="button" id="editTrip" value="Edit" />
    <input type="button" id="tripDetails" value="View Details" />
    <div class="clear"></div>
	<div id="map">
		<div id="trip-slides">
				    <div id="map_canvas"></div>
		</div>
	</div>
	<%@ include file="footer.jsp" %>
  </body>
</html>
